//
//  DockItemButton.m
//  团购
//
//  Created by 樊荣海 on 15/1/20.
//  Copyright (c) 2015年 樊荣海. All rights reserved.
//

#import "DockItemButton.h"

@implementation DockItemButton

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self == [super initWithFrame:frame]) {
        
        //        self.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin;
        
        
        //1.disable背景
        [self setBackgroundImage:[UIImage imageNamed:@"bg_tabbar_item"] forState:UIControlStateDisabled];
        
    }
    
    return self;
}

- (void)setEnabled:(BOOL)enabled {
    
    self.topLine = !enabled;
    
    [super setEnabled:enabled];
}

@end
